package com.zd.file.framework.listener;

import com.zd.file.brower.cache.RootPathCache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class BrowerPathChangeEvent extends ApplicationEvent {
    static Logger logger = LoggerFactory.getLogger(BrowerPathChangeEvent.class);

    public BrowerPathChangeEvent(Object source) {
        super(source);
    }
    public void action(){
        RootPathCache.reload();
        logger.info("重新加载全部主节点完成");
    }
}
